home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / il / ilHwVisual.z / ilHwVisual
Encoding:
Text File  |  2002-10-03  |  12.6 KB  |  397 lines

  1.  
  2.  
  3.  
  4. iiiillllHHHHwwwwVVVViiiissssuuuuaaaallll((((3333))))      IIIImmmmaaaaggggeeeeVVVViiiissssiiiioooonnnn LLLLiiiibbbbrrrraaaarrrryyyy CCCC++++++++ RRRReeeeffffeeeerrrreeeennnncccceeee MMMMaaaannnnuuuuaaaallll      iiiillllHHHHwwwwVVVViiiissssuuuuaaaallll((((3333))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      iiiillllHHHHwwwwVVVViiiissssuuuuaaaallll - an X Visual
  10.  
  11. IIIINNNNHHHHEEEERRRRIIIITTTTSSSS FFFFRRRROOOOMMMM
  12.      This is a base class
  13.  
  14. HHHHEEEEAAAADDDDEEEERRRR FFFFIIIILLLLEEEE
  15.      #include <il/ilHwConnection.h>
  16.  
  17. CCCCLLLLAAAASSSSSSSS DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  18.      The ilHwVisual object is filled in by the ilHwConnection::findVisual*
  19.      methods. It provides an easy way to decode the attributes of an X Visual.
  20.  
  21. CCCCLLLLAAAASSSSSSSS MMMMEEEEMMMMBBBBEEEERRRR FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN SSSSUUUUMMMMMMMMAAAARRRRYYYY
  22.      XXXX aaaattttttttrrrriiiibbbbuuuutttteeee qqqquuuueeeerrrriiiieeeessss
  23.  
  24.           XVisualInfo* getVisualInfo()
  25.           GLXFBConfigSGIX getFBConfig()
  26.           Visual* getVisual()
  27.           int getClass()
  28.           VisualID getVisualID()
  29.           int getDepth()
  30.           int getColormapSize()
  31.           unsigned long getRedMask()
  32.           unsigned long getGreenMask()
  33.           unsigned long getBlueMask()
  34.  
  35.      CCCCoooommmmppppoooonnnneeeennnntttt ssssiiiizzzzeeee qqqquuuueeeerrrriiiieeeessss
  36.  
  37.           int getComponentSize()
  38.           int getRedSize()
  39.           int getGreenSize()
  40.           int getBlueSize()
  41.           int getAlphaSize()
  42.  
  43.      VVVViiiissssuuuuaaaallll ccccaaaappppaaaabbbbiiiilllliiiittttyyyy qqqquuuueeeerrrriiiieeeessss
  44.  
  45.           int isDoubleBuffer()
  46.           int isStereo()
  47.           int isRgb()
  48.           int isColorIndex()
  49.           int doesOpenGL()
  50.           int hasDepth()
  51.           int hasStencil()
  52.           int hasAccum()
  53.           int hasPbuffer()
  54.           int hasAlpha()
  55.           int getVisualAttributes()
  56.           int getLevel()
  57.  
  58.      MMMMiiiisssscccceeeellllllllaaaannnneeeeoooouuuussss
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. iiiillllHHHHwwwwVVVViiiissssuuuuaaaallll((((3333))))      IIIImmmmaaaaggggeeeeVVVViiiissssiiiioooonnnn LLLLiiiibbbbrrrraaaarrrryyyy CCCC++++++++ RRRReeeeffffeeeerrrreeeennnncccceeee MMMMaaaannnnuuuuaaaallll      iiiillllHHHHwwwwVVVViiiissssuuuuaaaallll((((3333))))
  71.  
  72.  
  73.  
  74.           iflColorModel getColorModel()
  75.           int getIndex()
  76.           void markInvalid()
  77.           int isValid()
  78.  
  79.  
  80. FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNNSSSS
  81.      ddddooooeeeessssOOOOppppeeeennnnGGGGLLLL(((())))
  82.  
  83.           int doesOpenGL()
  84.  
  85.  
  86.           This method returns true if the Visual supports OpenGL rendering.
  87.  
  88.      ggggeeeettttAAAAllllpppphhhhaaaaSSSSiiiizzzzeeee(((())))
  89.  
  90.           int getAlphaSize()
  91.  
  92.  
  93.           This method returns the alpha component size; if OpenGL is supported
  94.           on this visual the value will be the true internal resolution,
  95.           otherwise it will be zero since X doesn't support an alpha
  96.           component.
  97.  
  98.      ggggeeeettttBBBBlllluuuueeeeMMMMaaaasssskkkk(((())))
  99.  
  100.           unsigned long getBlueMask()
  101.  
  102.  
  103.           This method returns the blue mask value from the XVisualInfo.
  104.  
  105.      ggggeeeettttBBBBlllluuuueeeeSSSSiiiizzzzeeee(((())))
  106.  
  107.           int getBlueSize()
  108.  
  109.  
  110.           This method returns the blue component size; if OpenGL is supported
  111.           on this visual the value will be the true internal resolution,
  112.           otherwise it is just derived from the visual depth and class.
  113.  
  114.      ggggeeeettttCCCCllllaaaassssssss(((())))
  115.  
  116.           int getClass()
  117.  
  118.  
  119.           This return the class of this Visual (e.g. TrueColor, PseudColor,
  120.           etc.).
  121.  
  122.      ggggeeeettttCCCCoooolllloooorrrrmmmmaaaappppSSSSiiiizzzzeeee(((())))
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. iiiillllHHHHwwwwVVVViiiissssuuuuaaaallll((((3333))))      IIIImmmmaaaaggggeeeeVVVViiiissssiiiioooonnnn LLLLiiiibbbbrrrraaaarrrryyyy CCCC++++++++ RRRReeeeffffeeeerrrreeeennnncccceeee MMMMaaaannnnuuuuaaaallll      iiiillllHHHHwwwwVVVViiiissssuuuuaaaallll((((3333))))
  137.  
  138.  
  139.  
  140.           int getColormapSize()
  141.  
  142.  
  143.           This method returns the colormap size from the XVisualInfo.
  144.  
  145.      ggggeeeettttCCCCoooolllloooorrrrMMMMooooddddeeeellll(((())))
  146.  
  147.           iflColorModel getColorModel()
  148.  
  149.  
  150.           This method returns the IL equivalent color model for this visual.
  151.  
  152.      ggggeeeettttCCCCoooommmmppppoooonnnneeeennnnttttSSSSiiiizzzzeeee(((())))
  153.  
  154.           int getComponentSize()
  155.  
  156.  
  157.           This method returns the component size of this Visual as seen by X.
  158.  
  159.      ggggeeeettttDDDDeeeepppptttthhhh(((())))
  160.  
  161.           int getDepth()
  162.  
  163.  
  164.           This method returns the depth of this visual.
  165.  
  166.      ggggeeeettttFFFFBBBBCCCCoooonnnnffffiiiigggg(((())))
  167.  
  168.           GLXFBConfigSGIX getFBConfig()
  169.  
  170.  
  171.           This method returns the FBConfig for this visual if there is one,
  172.           NULL otherwise.
  173.  
  174.      ggggeeeettttGGGGrrrreeeeeeeennnnMMMMaaaasssskkkk(((())))
  175.  
  176.           unsigned long getGreenMask()
  177.  
  178.  
  179.           This method returns the green mask value from the XVisualInfo.
  180.  
  181.      ggggeeeettttGGGGrrrreeeeeeeennnnSSSSiiiizzzzeeee(((())))
  182.  
  183.           int getGreenSize()
  184.  
  185.  
  186.           This method returns the green component size; if OpenGL is supported
  187.           on this visual the value will be the true internal resolution,
  188.           otherwise it is just derived from the visual depth and class.
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. iiiillllHHHHwwwwVVVViiiissssuuuuaaaallll((((3333))))      IIIImmmmaaaaggggeeeeVVVViiiissssiiiioooonnnn LLLLiiiibbbbrrrraaaarrrryyyy CCCC++++++++ RRRReeeeffffeeeerrrreeeennnncccceeee MMMMaaaannnnuuuuaaaallll      iiiillllHHHHwwwwVVVViiiissssuuuuaaaallll((((3333))))
  203.  
  204.  
  205.  
  206.      ggggeeeettttIIIInnnnddddeeeexxxx(((())))
  207.  
  208.           int getIndex()
  209.  
  210.  
  211.           This method returns an index that encodes the 'ilHwVisualAttributes'
  212.           attributes of this visual.  See <il/ilHwConnection.h> for a
  213.           defintion of these attributes.
  214.  
  215.      ggggeeeettttLLLLeeeevvvveeeellll(((())))
  216.  
  217.           int getLevel()
  218.  
  219.  
  220.           This method returns the level of this visual; zero indicates a
  221.           normal visual, other values are for underlay and overlay visuals.
  222.  
  223.      ggggeeeettttRRRReeeeddddMMMMaaaasssskkkk(((())))
  224.  
  225.           unsigned long getRedMask()
  226.  
  227.  
  228.           This method returns the red mask value from the XVisualInfo.
  229.  
  230.      ggggeeeettttRRRReeeeddddSSSSiiiizzzzeeee(((())))
  231.  
  232.           int getRedSize()
  233.  
  234.  
  235.           This method returns the red component size; if OpenGL is supported
  236.           on this visual the value will be the true internal resolution,
  237.           otherwise it is just derived from the visual depth and class.
  238.  
  239.      ggggeeeettttVVVViiiissssuuuuaaaallll(((())))
  240.  
  241.           Visual* getVisual()
  242.  
  243.  
  244.           This method returns the X Visual* for this ilHwVisual.
  245.  
  246.      ggggeeeettttVVVViiiissssuuuuaaaallllAAAAttttttttrrrriiiibbbbuuuutttteeeessss(((())))
  247.  
  248.           int getVisualAttributes()
  249.  
  250.  
  251.           This method returns the 'ilHwVisualAttributes' attributes.  See
  252.           <il/ilHwConnection.h> for a defintion of these attributes.
  253.  
  254.      ggggeeeettttVVVViiiissssuuuuaaaallllIIIIDDDD(((())))
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.                                                                         PPPPaaaaggggeeee 4444
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268. iiiillllHHHHwwwwVVVViiiissssuuuuaaaallll((((3333))))      IIIImmmmaaaaggggeeeeVVVViiiissssiiiioooonnnn LLLLiiiibbbbrrrraaaarrrryyyy CCCC++++++++ RRRReeeeffffeeeerrrreeeennnncccceeee MMMMaaaannnnuuuuaaaallll      iiiillllHHHHwwwwVVVViiiissssuuuuaaaallll((((3333))))
  269.  
  270.  
  271.  
  272.           VisualID getVisualID()
  273.  
  274.  
  275.           This method returns the VisualID of this visual.
  276.  
  277.      ggggeeeettttVVVViiiissssuuuuaaaallllIIIInnnnffffoooo(((())))
  278.  
  279.           XVisualInfo* getVisualInfo()
  280.  
  281.  
  282.           This method returns the XVisualInfo* for this visual.
  283.  
  284.      hhhhaaaassssAAAAccccccccuuuummmm(((())))
  285.  
  286.           int hasAccum()
  287.  
  288.  
  289.           Returns TRUE if this visual has an accumumlation buffer.
  290.  
  291.      hhhhaaaassssAAAAllllpppphhhhaaaa(((())))
  292.  
  293.           int hasAlpha()
  294.  
  295.  
  296.           Returns TRUE if this visual has an alpha component.
  297.  
  298.      hhhhaaaassssDDDDeeeepppptttthhhh(((())))
  299.  
  300.           int hasDepth()
  301.  
  302.  
  303.           Returns TRUE if this visual has an depth buffer.
  304.  
  305.      hhhhaaaassssPPPPbbbbuuuuffffffffeeeerrrr(((())))
  306.  
  307.           int hasPbuffer()
  308.  
  309.  
  310.           Returns TRUE if this visual is usable as a p-buffer.
  311.  
  312.      hhhhaaaassssSSSStttteeeennnncccciiiillll(((())))
  313.  
  314.           int hasStencil()
  315.  
  316.  
  317.           Returns TRUE if this visual has stencil planes.
  318.  
  319.      iiiissssCCCCoooolllloooorrrrIIIInnnnddddeeeexxxx(((())))
  320.  
  321.           int isColorIndex()
  322.  
  323.  
  324.  
  325.  
  326.  
  327.                                                                         PPPPaaaaggggeeee 5555
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334. iiiillllHHHHwwwwVVVViiiissssuuuuaaaallll((((3333))))      IIIImmmmaaaaggggeeeeVVVViiiissssiiiioooonnnn LLLLiiiibbbbrrrraaaarrrryyyy CCCC++++++++ RRRReeeeffffeeeerrrreeeennnncccceeee MMMMaaaannnnuuuuaaaallll      iiiillllHHHHwwwwVVVViiiissssuuuuaaaallll((((3333))))
  335.  
  336.  
  337.  
  338.           This method returns true if this is a color-index visual.
  339.  
  340.      iiiissssDDDDoooouuuubbbblllleeeeBBBBuuuuffffffffeeeerrrr(((())))
  341.  
  342.           int isDoubleBuffer()
  343.  
  344.  
  345.           This method returns true if this is a double buffered visual.
  346.  
  347.      iiiissssRRRRggggbbbb(((())))
  348.  
  349.           int isRgb()
  350.  
  351.  
  352.           This method returns true if this is a TrueColor or DirectColor
  353.           visual.
  354.  
  355.      iiiissssSSSStttteeeerrrreeeeoooo(((())))
  356.  
  357.           int isStereo()
  358.  
  359.  
  360.           This method returns true if this is a stereo visual.
  361.  
  362.      iiiissssVVVVaaaalllliiiidddd(((())))
  363.  
  364.           int isValid()
  365.  
  366.  
  367.           This method returns true if this ilHwVisual has been initialized.
  368.  
  369.      mmmmaaaarrrrkkkkIIIInnnnvvvvaaaalllliiiidddd(((())))
  370.  
  371.           void markInvalid()
  372.  
  373.  
  374.           This method marks this ilHwVisual as uninitialized.
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.                                                                         PPPPaaaaggggeeee 6666
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.